
import Svgicon from "./Svgicon/index.vue"

import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 全局组件
const allGloablComponents = {
    Svgicon
}

export default {
    install(app: any) {
        console.log(app)
        // 快速注册全局组件
        Object.keys(allGloablComponents).forEach(key => {
            console.log(key)
            app.component(key, allGloablComponents[key])
        })
        //注册element-plus的图标
        for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
            app.component(key, component)
          }
    }
}